package com.pms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pms.dao.EmployeePeriodDao;
import com.pms.dao.impl.EmployeePeriodDaoImpl;
import com.pms.pojo.Department;
import com.pms.pojo.Employee;
import com.pms.pojo.Post;
import com.pms.pojo.Require_yun;
import com.pms.service.EmployeePeriodService;

@Service("periodService")
public class EmployeePeriodServiceImpl implements EmployeePeriodService{
	@Resource(name="employeePeriodDaoImpl")
	private EmployeePeriodDaoImpl  employeePeriod;

	public void setEmployeePeriod(EmployeePeriodDaoImpl  employeePeriod) {
		this.employeePeriod=employeePeriod;
	}
	@Override
	public List<Department> getDpartments() {
		// TODO Auto-generated method stub
		return this.employeePeriod.findDepartmentAll();
		
	}

	@Override
	public List<Post> getPosts() {
		// TODO Auto-generated method stub
		return this.employeePeriod.findPostAll();	
	}
	@Override
	public Employee getEmployeeById(Integer empId) {
		// TODO Auto-generated method stub
		return this.employeePeriod.findEmployeeById(empId);
	}
	@Override
	public List<Require_yun> getRequire_yun(Require_yun require) {
		// TODO Auto-generated method stub
		return this.employeePeriod.findRequire_yun(require);
	}
	@Override
	public List<Require_yun> getRequireTwo_yun(Require_yun require) {
		// TODO Auto-generated method stub
		return this.employeePeriod.findRequireTwo_yun(require);
	}
	@Override
	public Require_yun getRequireOp_yun(Require_yun require) {
		// TODO Auto-generated method stub
		return this.employeePeriod.findRequireOp_yun(require);
	}
	@Override
	public void updateRegemp(Integer empId) {
		// TODO Auto-generated method stub
		this.employeePeriod.updateRegemp(empId);
	}
	@Override
	public void updateNever(Integer empId) {
		// TODO Auto-generated method stub
		this.employeePeriod.updateNever(empId);
	}
	@Override
	public void updateDela(Require_yun require) {
		// TODO Auto-generated method stub
		this.employeePeriod.updateDela(require);
	}
	@Override
	public void updateEva(Require_yun require) {
		// TODO Auto-generated method stub
		this.employeePeriod.updateEva(require);
	}
}
